import request from 'umi-request';

// 查询不同模块数据信息
export async function fetchMonitorData(url, params) {
  // return request(`http://www.kmzydata.cn:13000/mock/21/api/${url}Monitor`, {
  //   params
  // });
  return request(`/api/${url}Monitor`, {
    params
  });
  // return request('/api/house?name=test&level=city&purpose=商品房&time_type=年度&region_name_v=昆明市&seq_v=14', {
  //   // params
  // });
}


export async function fetchTimeRange(params) {
  const response = await request('/api/house', {
    params
  })
  return response
}

export async function fakeQueryUserInfo(params) {
  const response = await request('/api/fakeUserInfo', {
    params,
    method: 'GET'
  })
  return response
}
